package cn.itheima.service.impl;

import cn.itheima.dao.TakeTimeRepository;
import cn.itheima.domain.TakeTime;
import cn.itheima.service.TakeTimeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by millions on 2017/7/4.
 */
@Service
public class TakeTimeServiceImpl implements TakeTimeService{

    @Autowired
    private TakeTimeRepository takeTimeRepository;

    @Override
    public List<TakeTime> findAllTakeTime() {
        return takeTimeRepository.findAll();
    }
}
